import { reqShopCart } from '@/api'

// 
const state = {
    myOrders: [],
}
const mutations = {
    GETMYORDERSDATA(state, val) {
        state.myOrders = val
    }

}
const actions = {
    // 我的订单数据
    async getMyOrdersData({ commit }) {
        let result = await reqShopCart();
        if (result.code === 200) {
            commit("GETMYORDERSDATA", result.data)
          
        }

    }

}
const getters = {}
   
export default {
    state,
    mutations,
    actions,
    getters
}